<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<link rel="stylesheet" href="ztree/zTreeStyle.css"/>
<script type="text/javascript" src="ztree/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript">

/* $(function(){

	$.ajax({
		"url":"menu/get/menuTree.json",
		"dataType":"json",
		"type":"post",
		"success":function(response){
			var result = response.result
			if(result=="SUCCESS"){
				//显示菜单树
				//1.创建 JSON 对象用于存储对 zTree 所做的设置
				var setting = {
						view: {
							addDiyDom: myAddDiyDom
						}
				};
				//2.准备生成树形结构的 JSON 数据
				var zNodes = response.data;
				//3.初始化树形结构 
				$.fn.zTree.init($("#treeDemo"),setting,zNodes);
			}
			if(result=="FAILED"){
				layer.msg(response.message);
			}
		}
		
	});
	
	
	//修改图标
	function myAddDiyDom(treeId,treeNode){
		//控制台打印
		console.log("treeId="+treeId);
		console.log(treeNode);
		//图标的id格式为：treeDemo_1_ico =>treeNode的tId_ico
		//获取spanID
		var spanId = treeNode.tId+"_ico";
		//修改图标
		$("#"+spanId).removeClass().addClass(treeNode.icon);
	}
}) */
</script>
<div class="col-sm-3 col-md-2 sidebar">
	<!-- <div class="tree">
		这个ul标签是zTree动态生成的节点所依附的静态节点
		<ul style="padding-left: 0px;" id="treeDemo" class="ztree list-group"></ul>
	</div> -->
	<div class="tree">
		<ul style="padding-left: 0px;" class="list-group">
			<li class="list-group-item tree-closed"><a href="main.html"><i
					class="glyphicon glyphicon-dashboard"></i> 控制面板</a></li>
			<li class="list-group-item tree-closed"><span><i
					class="glyphicon glyphicon glyphicon-tasks"></i> 权限管理 <span
					class="badge" style="float: right">3</span></span>
				<ul style="margin-top: 10px; display: none;">
					<li style="height: 30px;"><a href="admin/get/page.html"><i
							class="glyphicon glyphicon-user"></i> 用户维护</a></li>
					<li style="height: 30px;"><a href="role/to/page.html"><i
							class="glyphicon glyphicon-king"></i> 角色维护</a></li>
					<li style="height: 30px;"><a href="menu/to/page.html"><i
							class="glyphicon glyphicon-lock"></i> 菜单维护</a></li>
				</ul></li>
			<!-- <li class="list-group-item tree-closed"><span><i
					class="glyphicon glyphicon-ok"></i> 业务审核 <span class="badge"
					style="float: right">3</span></span>
				<ul style="margin-top: 10px; display: none;">
					<li style="height: 30px;"><a href="cert/to/page.html"><i
							class="glyphicon glyphicon-check"></i> 实名认证审核</a></li>
					<li style="height: 30px;"><a href="adv/to/page.html"><i
							class="glyphicon glyphicon-check"></i> 广告审核</a></li>
					<li style="height: 30px;"><a href="project/to/page.html"><i
							class="glyphicon glyphicon-check"></i> 项目审核</a></li>
				</ul></li> -->
			<li class="list-group-item tree-closed"><span><i
					class="glyphicon glyphicon-th-large"></i> 业务管理 <span class="badge"
					style="float: right">4</span></span>
				<ul style="margin-top: 10px; display: none;">
					<li style="height: 30px;"><a href="project/to/page.html"><i
							class="glyphicon glyphicon-check"></i> 项目审核</a></li>
					<li style="height: 30px;"><a href="order/to/page.html"><i
							class="glyphicon glyphicon-check"></i> 订单审核</a></li>
					<li style="height: 30px;"><a href="get/project/type.html"><i
							class="glyphicon glyphicon-list"></i> 项目分类</a></li>
					<li style="height: 30px;"><a href="get/project/tag.html"><i
							class="glyphicon glyphicon-tags"></i> 项目标签</a></li>
					<!-- <li style="height: 30px;"><a href="quality/to/page.html"><i
							class="glyphicon glyphicon-picture"></i> 资质维护</a></li>
					<li style="height: 30px;"><a href="type.html"><i
							class="glyphicon glyphicon-equalizer"></i> 分类管理</a></li>
					<li style="height: 30px;"><a href="process.html"><i
							class="glyphicon glyphicon-random"></i> 流程管理</a></li>
					<li style="height: 30px;"><a href="advertisement.html"><i
							class="glyphicon glyphicon-hdd"></i> 广告管理</a></li>
					<li style="height: 30px;"><a href="message.html"><i
							class="glyphicon glyphicon-comment"></i> 消息模板</a></li> -->
				</ul></li>
			 <!--<li class="list-group-item tree-closed"><a href="param.html"><i
					class="glyphicon glyphicon-list-alt"></i> 参数管理</a></li> -->
		</ul>
	</div>
</div>